<div class="page-sidebar navbar-collapse collapse">
    <!-- BEGIN SIDEBAR MENU -->
    <ul class="page-sidebar-menu">
        <li>
            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
            <div class="sidebar-toggler hidden-phone"></div> <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        </li>
        <if condition="$m_id eq 1">
            <foreach name="subNav" item="one">
                <li <if condition="in_array(CONTROLLER_NAME,$one['ctrl'])">class="active"</if>>
                <a href="javascript:;"> <i class="{$one.icon}"></i>
                    <span class="title">{$one.navTitle|cnsubstr=6}</span> <span class="arrow"></span>
                </a>
            <ul class="sub-menu">
                <foreach  name="one.secNav" item="two">
                    <li
                    <if condition="$two['act']">
                        <if condition="in_array(CONTROLLER_NAME,$two['ctrl']) AND in_array(ACTION_NAME,$two['act']) AND $_GET[$two['params']['key']] eq $two['params']['value']">class="active"</if>
                    <else />
                        <if condition="in_array(CONTROLLER_NAME,$two['ctrl'])">class="active"</if>
                    </if>
                    >
                        <a href="{:U($two['secLink'],[$two['params']['key']=>$two['params']['value']])}"  id="banner"><i class='{$two.icon}'></i> {$two.secTitle|cnsubstr=6}</a>
                    </li>
                </foreach >
            </ul>
        </li>
            </foreach>
        <else />
          <foreach name="subNav" item="one" key="a" >
                    <in name="a" value="$group_keys">
                        <li <if condition="in_array(CONTROLLER_NAME,$one['ctrl'])">class="active"</if>><a href="javascript:;"> <i class="{$one.icon}"></i> <span
                                        class="title">{$one.navTitle|cnsubstr=6}</span> <span class="arrow"></span>
                            </a>
                            <ul class="sub-menu">
                                <foreach  name="one.secNav" item="two" key="b">
                                    <li><a href="{:U($two['secLink'],[$two['params']['key']=>$two['params']['value']])}" id="banner"><i class='{$two.icon}'></i> {$two.secTitle|cnsubstr=6}</a></li>
                                </foreach>
                            </ul>
                        </li>
                    </in>
          </foreach>
            </if>

    </ul>
    <!-- END SIDEBAR MENU -->
</div>